Skip to content

Fix absolute RECORD path resolution#537

Open
gaoflow wants to merge 1 commit into
python:mainfrom
gaoflow:fix-535-record-absolute-path
Open

Fix absolute RECORD path resolution#537
gaoflow wants to merge 1 commit into
python:mainfrom
gaoflow:fix-535-record-absolute-path

Conversation

@gaoflow

@gaoflow gaoflow commented Jun 19, 2026

Copy link
Copy Markdown

Closes #535.

Summary

  • resolve PathDistribution.locate_file() paths through os.fspath() before joining with the distribution parent
  • add a regression test that uses PureWindowsPath to cover absolute Windows RECORD entries on non-Windows hosts

Verification

  • PYTHONPATH=. uv run --python 3.11 --with '.[test]' pytest tests/test_api.py::APITests::test_locate_file_with_windows_absolute_path -q\n- PYTHONPATH=. uv run --python 3.11 --with '.[test]' pytest tests/test_api.py::APITests::test_files_dist_info tests/test_api.py::APITests::test_files_egg_info -q\n- PYTHONPATH=. uv run --python 3.11 --with '.[test]' pytest -q\n- PYTHONPATH=. uv run --python 3.11 --with '.[test,check]' pytest --ruff -q\n- PYTHONPATH=. uv run --python 3.11 --with '.[test,type]' pytest --mypy -q\n- git diff --check\n\nAI assistance was used under my direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Distribution.files does not show files with absolute RECORD entries on Windows with Python 3.10 and 3.11

1 participant